﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Enter.Entity;
using Enter.Config;
using System.ServiceModel;

namespace Enter.Services.Mail
{
    public partial interface IMail
    {
         [OperationContract]
        string GetShopNo();
        /// <summary>
        /// 申请开店
        /// </summary>
        /// <param name="Entity"></param>
        /// <returns></returns>
         [OperationContract]
         bool AddShop(T401_ShopEntity Entity, T402_ShopInfoEntity Entityinfo);
       
        /// <summary>
        /// 修改店铺基本信息
        /// </summary>
        /// <param name="Entity"></param>
        /// <returns></returns>
        [OperationContract]
        bool UpdateShop(T401_ShopEntity Entity);
       
        /// <summary>
        /// 修改店铺详细信息
        /// </summary>
        /// <param name="Entity"></param>
        /// <returns></returns>
        [OperationContract]
        bool UpdateShopInfo(T402_ShopInfoEntity Entity);
        
        /// <summary>
        /// 通过店铺ID获取店铺基本信息
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
       [OperationContract]
        T401_ShopEntity GetShopByID(int shopID);
        /// 通过店铺NO获取店铺基本信息
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
       T401_ShopEntity GetShopBySNO(string sNO);
        /// <summary>
        /// 通过用户ID获取店铺基本信息
        /// </summary>
        /// <param name="uID"></param>
        /// <returns></returns>
       [OperationContract]
        T401_ShopEntity GetShopByUID(int uID);
       
        /// <summary>
        /// 通过店铺ID获取店铺详细信息
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
        [OperationContract]
        T402_ShopInfoEntity GetShopInfoByID(int shopID);
        
        /// <summary>
        /// 添加店铺自定义商品类型
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        [OperationContract]
        bool AddShopGoodClass(T405_ShopGoodClassEntity entity);
        

        /// <summary>
        /// 添加店铺自定义商品类型
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        [OperationContract]
        bool UpdateShopGoodClass(T405_ShopGoodClassEntity entity);
       

        /// <summary>
        /// 获取店铺自定义类型
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
       [OperationContract]
        List<T405_ShopGoodClassEntity> GetShopGoodClassByShopID(int shopID);
        
        /// <summary>
        /// 获取店铺自定义类型
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
       [OperationContract]
        List<T405_ShopGoodClassEntity> GetShopGoodClassByShopID(int shopID, EnumStatus status);
       
        /// <summary>
        /// 获取店铺自定义类型
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
       [OperationContract]
        List<T405_ShopGoodClassEntity> GetShopGoodClassByParentID(int shopID, int parentID);
       
        /// <summary>
        /// 获取店铺自定义类型
        /// </summary>
        /// <param name="shopID"></param>
        /// <returns></returns>
       [OperationContract]
         List<T405_ShopGoodClassEntity> GetShopGoodClassByParentID(int shopID, int parentID, EnumStatus status);
        
    }
}
